<h1>注册用户</h1>

<table>
  <tr>
    <th>用户名</th>
    <th>邮箱</th>
    <th>注册时间</th>
    <th>激活时间</th>
  </tr>
  <% for user in @users %>
    <tr>
      <td><%=h user.login %></td>
      <td><%=h user.email %></td>
      <td><%=user.created_at.to_s(:long) %></td>
      <td><%= user.activated_at ? user.activated_at.to_s(:long) : "尚未激活" %></td>

      <td><%= link_to '删除',user, :confirm => '确定要删除吗?', :method => :delete %></td>
    </tr>
  <% end %>
</table>


